<template>
	<view class="page"><button @click="login" class="loginbtn uni-background-button" type="default">登录</button></view>
</template>
<style lang="scss" scoped>
.page {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 750rpx;
	height: 100vh;
	background: #fff;
	.loginbtn {
		width: 686rpx;
	}
}
</style>
<script>
export default {
	onShareAppMessage() {
		return this.wxShare();
	},
	data() {
		return {};
	},
	onLoad(e) {
		if (e.token) {
			this.token = e.token;
			uni.redirectTo({
				url: '../mine/mine'
			});
			
		} else {
		}
	},
	methods: {
		login() {
			let url = window.location.href + '?id=1';
			location.href = 'https://www.jingzhe365.com/index/login/getBaseInfo?url=' + encodeURIComponent(url);
		}
	}
};
</script>

<style></style>
